package RUN;

public class Rab implements Runnable {
	public void run() {
		for(int i=10;i<=20;) {
			System.out.println("兔子跑了"+i+"米");
			i=i+10;
			try {
				Thread.sleep(2000);
				System.out.println("兔子睡了10秒");
			}catch(InterruptedException e) {}
			
			if(i>20) {
				System.out.println("兔子到终点了！");
			}
		}
	}
}